<template>
  <div class="page-login">
    <section style="width: 500px;margin: 24px;">
      <el-form ref="form" :model="form" label-width="80px">
        <el-form-item label="用户名">
          <el-input v-model="form.name" type="text"></el-input>
        </el-form-item>
        <el-form-item label="密码">
          <el-input v-model="form.pwd" type="password"></el-input>
        </el-form-item>
        <el-form-item>
          <el-button type="primary" @click="login">登录</el-button>
        </el-form-item>
      </el-form>
    </section>
    <article>
      <span>没有账号？</span>
      <a href="/register">去注册</a>
    </article>
  </div>
</template>
<script>
export default {
  layout: "blank",
  data() {
    return {
      form: {
        name: "",
        pwd: ""
      }
    };
  },
  methods: {
    login() {}
  }
};
</script>